<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
 <table>
     <tr>
         <td>大楼</td>
         <td>房间代码</td>
         <td>客户姓名</td>
         <td>选择</td>
     </tr>
     <c:forEach items="${sessionScope.findHouse.datas}" var="house">
         <tr id="append">
             <td class="hide">${house.block }</td>
             <td class="hide">${house.h_id }</td>
             <td class="hide">${house.inhabitant.i_name }</td>
             <td class="hide">
            	 <button style="width: 50px;height:20px;font-size: small;" onclick="addName('${house.h_id }')" >
             		添加</button>
             </td>
         </tr>
     </c:forEach>
    </table>
    <div id="left-page">
        <div class="left-page"><button onclick="selectH_id(0)">上一页</button></div>
        <div class="left-page" id="currentPage">${findHouse.currentPage}</div>
        <div class="left-page"><button onclick="selectH_id(1)">下一页</button></div>
    </div>
</body>
<script type="text/javascript" src="../JS/addName.js"></script>
</html>